package yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import yygh.common.result.Result;

@FeignClient(value = "service-cmn")
@Repository
public interface DictFeignClient {

    //方法接口4：根据value字段查找对象的name字段
    @GetMapping("/admin/cmn/dict/getName/{value}")
    public String getName(@PathVariable("value")  String value);


    //方法接口5：根据value字段和dit_code查找对象的name字段
    @GetMapping("/admin/cmn/dict/getName/{dictCode}/{value}")
      public String getName(@PathVariable("value") String value,
                           @PathVariable("dictCode") String dictCode);

}
